package com.yootk;
import java.io.*;

public class YootkDemo_Writer{
    public static void main(String[] args) throws Exception {
        File file = new File("Hi" + File.separator + "muyan" + File.separator + "vip" + File.separator + "yootk.txt"); // 输出文件路径
        if (!file.getParentFile().exists()) {
            file.getParentFile().mkdirs();
        }
        try (Writer out = new FileWriter(file)) { // 对象实例化
            out.write("冰雪科技: www.yootk.com\n"); // 输出信息
            out.append("李兴华高薪就业编程训练营: edu.yootk.com"); // 追加输出信息
        } catch (Exception e) {}
    }
}
